const mysql=require('mysql')
var pool=mysql.createPool({
    hose:'127.0.0.1',
    port:'3306',
    user:'root',
    password:'root',
    database:'userDate',
    connectionLimit:20 //连接池的大小
})
// pool.query()

// var sql='select * from userinfo'
// pool.query(sql,function(err,result){
//     if(err) throw err;
//     console.log(result)
// })

module.exports=pool